//
//  BaseRefreshRequest.h
//  SleepingElf
//
//  Created by karong on 2023/6/21.
//

#import "BaseRequest.h"

NS_ASSUME_NONNULL_BEGIN

@protocol PagableRequestPotocol <NSObject>

@optional

@property (nonatomic, assign) NSInteger page;
@property (nonatomic, assign) NSInteger pageSize;
@property (nonatomic, assign) BOOL loading;
@property (nonatomic, assign) BOOL haveMore;
@property (nonatomic, assign) NSInteger totalCount;
@property (nonatomic, strong) id reponseObject;

- (void)refreshDataSuccess:(ArrayBlock)success failed:(Failure)failed;
- (void)loadMoreDataSuccess:(ArrayBlock)success failed:(Failure)failed;

@end

@interface BaseRefreshRequest : BaseRequest <PagableRequestPotocol>

@end

NS_ASSUME_NONNULL_END
